package cn.satoken.service.impl;

import cn.dev33.satoken.util.SaResult;
import cn.satoken.entity.SysMenu;
import cn.satoken.mapper.SysMenuMapper;
import cn.satoken.service.SysMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <h3>saToken</h3>
 * <p></p>
 *
 * @author gdw
 * @since 2025-04-23 15:29:33
 */
@Service
@Transactional
@RequiredArgsConstructor
public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> implements SysMenuService {
    private final SysMenuMapper sysMenuMapper;
    @Override
    public SaResult selectAll() {
        List<SysMenu> sysMenus = sysMenuMapper.selectAll();
        return SaResult.data(sysMenus);
    }
}
